Visit Our UNIX and Linux User Community


all the pretty scripts gone...gone...


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers all the pretty scripts gone...gone...
# 1  
Old 06-21-2001
Data all the pretty scripts gone...gone...

I managed to delete my first shell script which was a menu that called functions. I made it all real nice and it ran like a winner.

I was so pleased with it I wanted to print it out and look it over, over lunch. Well, lets just say Im better at scripting than just regular commands coz I deleted it....*slaps capital L to forehead with thumb and forefinger*

Its gone *sniff*

I dont know how to print from vi, Im ashamed to say, and the command I used
*hang onto your bellies* was funcfile>prn...what possessed me, ah, um, lack of any clue?

Oh dear, well if anyone would care to condescend to telling me where they think I may have banished my first unix born Id much appreciate it.
michelle
# 2  
Old 06-21-2001
Finding your funcfile

Before I go on and make a suggestion that will undoubtbly make ME the laughing stock of the Unix world. I'd like to say, "At least I tried".

Ok type:

find / -name funcfile

Hopefully this will locate your, "FIRST BORN".

Regards
Mark

# 3  
Old 06-21-2001
Michelle let us know the exact command you typed on the command line, perhaps, as mwright has suggested, you may have simply redirected the output of your script to another file, however it does look as though you have redirected the output from something else to your script, and hence ovewritten it Smilie

Don't worry! When I first delved into shell scripting, I had written a 1500 word beautifully streamlined script with sed and awk statement that performed a number of functions, it took me 2 weeks - then the HP 712/60 it was on died Smilie And along with it so did my script. But alas losing that script actually taught me a lot more as I had to write it again and picked up even more skiils as my knowledge of scripting increased!

...Just a little anecdote to show you that you have not been the first, and you wont be the last Smilie

Regards.
alwayslearningunix
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #77
Difficulty: Easy
MINIX was a Unix-like operating system created for educational purposes.
True or False?

8 More Discussions You Might Find Interesting

1. What is on Your Mind?

Pretty kool datacentre

Hi All, Just seen this news article on the BBC website. Microsoft sinks data centre off Orkney - BBC News Instead of investing in new cooler processor technology they decide to warm the ocean with the old. Okay, it's just an experiment. Interesting? (2 Replies)
Discussion started by: hicksd8
2 Replies

2. UNIX for Dummies Questions & Answers

Xmllint pretty print, batch files

I have about 20 xml files I want to use xmllint to pretty print: xmllint --format file01.xml > pretty_file01.xml xmllint --format file02.xml > pretty_file02.xml etc Is there a way I can just use "xmllint --format" on all the current xml files so I don't have to run this command 20 times?? :( (5 Replies)
Discussion started by: pxalpine
5 Replies

3. UNIX and Linux Applications

Organize (pretty) code

I'm looking for terminal programs, which organize and pretty code like HTML or JavaScript. Thanks! ---------- Post updated at 07:01 AM ---------- Previous update was at 01:49 AM ---------- Found this Online javascript beautifier (1 Reply)
Discussion started by: borobudur
1 Replies

4. Shell Programming and Scripting

Regarding passwd command - Pretty urgent

Can any one please help me for the following :mad: i'm searching for an alternative command in linux for passwd -as (which is in solaris) but in linux there is an option "-S" which gives the status of only one user for listing all the user i cudn't find any alternative this "passwd -as" in... (0 Replies)
Discussion started by: sabee.prakash
0 Replies

5. UNIX for Dummies Questions & Answers

My output doesn't match anything...and the program is pretty simple

This is what I have: #include <stdio.h> int main (void) { int integerVar; int floatingVar; int doubleVar; int charVar; integerVar = 100; floatingVar = 331.79; doubleVar = 8.44e+11; charVar = 'W'; _Bool boolVar; boolVar = 0; ... (3 Replies)
Discussion started by: pwanda
3 Replies

6. Programming

I am pretty new to this

Ok, so I need to make a program using PICO. Here is the assignment, if anyone knows how to do this please show me. Thanks. Acme Paints, a well-respected local paint store, is having their big End-Of-Winter Paint Sale. They have way too much red, green, yellow, and blue paint on hand in their... (1 Reply)
Discussion started by: thescene
1 Replies

7. UNIX for Dummies Questions & Answers

HELP ASAP.. pretty simple..

Hey guys.... couple questions... I am working a problem set and can't answer this: 1) Suppose you are in a directory that contains a file called "foo." You want to create a new file called "bar" that contains the sorted contents of "foo" in the parent directory of the one you're in. How... (8 Replies)
Discussion started by: ugakid
8 Replies

8. AIX

pretty good aix doc if you are unfamilar with it

http://homepage.virgin.net/johnc.king/files/aixdoc/aixdoc.pdf this is taken from http://watkiss.members.easyspace.com/computers/unix/aix/aixdoc.html it is 372 pages long. (0 Replies)
Discussion started by: Optimus_P
0 Replies

Featured Tech Videos