You are not logged in.

#1 2012-08-24 07:58:24

oliver
Administrator
Registered: 2010-11-04
Posts: 2,209

the most useless use of cat

took over some scripts for a resigning colleague... found this:

#!/bin/bash
cat /root/inputfile | while read LINE; do $LINE; done

Or just run:

/root/inputfile

I think I need some hobbies.

Offline

#2 2012-08-24 09:22:50

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: the most useless use of cat

This hurts my eyes

$(cat $ANSWER)

Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#3 2012-08-25 03:34:15

scjet
Member
From: Canada
Registered: 2010-12-01
Posts: 1,468

Re: the most useless use of cat

$ sed statement <<< cat
cement

sry, that's an oldie, but a goodie
smile

Last edited by scjet (2012-08-25 12:19:57)

Offline

Board footer

Powered by FluxBB