Link to home
Start Free TrialLog in
Avatar of Pau Lo
Pau Lo

asked on

shell syntax and file copy syntax AIX IBM

what does the # character represent in an AIX IBM shell command?

Also can you give an example of how to copy the contents of an AIX IBM file into a text file via a shell command?
ASKER CERTIFIED SOLUTION
Avatar of farzanj
farzanj
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Pau Lo
Pau Lo

ASKER

if you ran

# grep SYSTEM /etc/security/user > 123.txt within a shell, would it work, or would the # comment out the command?

or put another way would
grep SYSTEM /etc/security/user >123.txt

work / run ok?
On the shell, if you are hitting the enter/return key and you get #, I think you are talking about the prompt sign

You can change it if you say

PS1="> "

To change it to > if you like.

Yes, if you are putting # yourself, that would comment it and it would therefore not run.

grep SYSTEM /etc/security/user >123.txt   work/run

YES