Now my question is why i am getting a letter "a" in the output along with file or dir name .
This is the output from the tar program itself: as it creates the tar archive ("tar" is short for "tape archive", that was the original purpose of the program) it "archives" file after file. Every file processed in such manner is reported as output, along with the "a" for "added" or "archived".
---------- Post updated at 12:27 PM ---------- Previous update was at 12:22 PM ----------
so this means that getting 'a' is obvious and the output is correct .
and
sry plz ignore my previous post.
---------- Post updated at 04:53 PM ---------- Previous update was at 12:27 PM ----------
so this means that getting 'a' is obvious and the output is correct .
---------- Post updated 10-12-12 at 04:00 PM ---------- Previous update was 10-11-12 at 04:53 PM ----------
one more confusion.
my below script is not giving expected output.
when i ran the script like (where f1 is a file name).
i am getting below o/p
but the expected output should be as "f1 is not a tar file".
can you please pin point my error.
---------- Post updated at 04:15 PM ---------- Previous update was at 04:00 PM ----------
plz respond to my query
Moderator's Comments:
edit by bakunin: please keep in mind that we are no helpdesk and bumping up threads is forbidden by our rules. If you want reliable responsible consultancy within a certain amount of time please consider hiring an expert instead of pestering us for not answering within a certain timeframe.
All this will get you is stony silence and some infractions. Thank you for your consideration.
---------- Post updated at 08:42 PM ---------- Previous update was at 04:15 PM ----------
hi bakunin
ok . i accept my mistake. and sorry for that.
this is purely a mistake and not intentially.
i think i found the error . in the below code i remove the space between double quotes and 2
after this my script run correctly. o/p below
however i am unable to understand
1) why a single space causing a problem.
2) why script not working even removing 2>/dev/null (as per you suggestion )
3) why in the above attached o/p is is show f22 . when the file name is f2
Last edited by scriptor; 10-15-2012 at 03:46 AM..
Reason: forgot to use wrap tag
one more observation
when i am keeping the code as it is (as mention earlier)
the o/p comes as expected in case when file size is not zero. if we consider the file whose size is zero in that case is show below o/p
in this case , then i remove the space between double quotes and 2.
now request you to please tell me why this is happening .
Last edited by scriptor; 10-16-2012 at 04:04 AM..
Reason: missed to mention o/p
Hi
In one of the script I am seeing some thing like exit 7,exit 1,exit 2,exit 3,exit 9,exit6.What is the difference between all of this exit.Can anyone help here please (3 Replies)
Hello All,
I have a problem in counting number of process getting run with my current script name..
Here it is
ps -ef | grep $0 | grep -v grep
This display just one line with the PID, PPID and other details when i print it in the script.
But when I want to count the numbers in my... (11 Replies)
I come across an entry in cron which is in such:
0 * * * *
What is the first 0 indicating? 0 minute? meaning a script cron as such will run every minute? :confused: (2 Replies)
Good day, everyone!
Could anybody explain me the following situation.
If I'm running similar script:
Var="anna.kurnikova"
Var2="Anna Kurn"
echo $Var | tr -t "$Var" "$Var2"
Why the output is :
anna KurniKova
instead of Anna Kurnikova?
:confused:
Thank you in advance for any... (2 Replies)
I'm an intern at a company that recently bought out another business. In doing so, they inherited a unix system that contains files which they need to retrieve. No one in the company, including myself, really understands or knows unix so please respond with the true assumption that I'm a unix... (1 Reply)
I'm receiving an exit code 64 in our batch scheduler (BMC product control-m) executing a PERL script on UX-HP. Can you tell me where I can find a list of exit codes and their meaning. I'm assuming the exit code is from the Unix operating system not PERL. (3 Replies)
Hello All,
I like this forum btw, and have only been lurking for about a day.
Recently I purchased some new hardware (AMD Athlon 64 3200+ and a Asus K8V Deluxe Motherboard), and I want to find an OS that can take advantage of the 64 bit processor.
Basically, what are the differences... (2 Replies)